package com.tang.algorithm.array;

/**
 * @author tlm
 * @version 1.0
 * @date 2020/6/15 21:09
 */
public class LeetCode1480 {
    public int[] runningSum(int[] nums) {
        int size = nums.length;
        int[] res = new int[size];
        int sum=0;
        for (int i = 0; i <size ; i++) {
            sum+=nums[i];
            res[i]=sum;
        }
        return res;
    }
}
